﻿using System.Security.Cryptography;
using Interfaces.Infrastructure;

namespace Framework.Security
{
    public class Md5HashService : IHashService
    {
        public string GetHash(string data)
        {
            using (var md5Hash = MD5.Create())
            {
                return HashComputer.GetMd5Hash(md5Hash, data);
            }
        }
    }
}
